package com.itheima.d06_static_code_blocks;

public class Pig {
    public String name;
    public int age;
    public String owner;
    public String kind;
    public static String country;

    public Pig() {
        System.out.println("无参构造方法");
    }

    public void eat() {
        System.out.println("吃");
    }


    static {
        System.out.println("静态代码块");
        country = "中国";
    }

    {
        System.out.println("实例代码块");
    }
}
